package it.fuzzylogics.fuzzywidgetsLibrary.client.FuzzyTextbox;


import it.fuzzylogics.fuzzywidgetsLibrary.client.FuzzyRoundedPanel.FRoundPanel;


public class FRTextBox extends FRoundPanel {
    public FTextBox fTeXBox;


    public FRTextBox() {
        super("img1_text_box.gif", "img2_text_box.gif", "img3_text_box.gif", "img4_text_box.gif", 5, 5, false);
        setTopBorderStyle("titoloRoundPanelBorder1");
        setLeftBorderStyle("titoloRoundPanelBorder2");
        setRightBorderStyle("titoloRoundPanelBorder3");
        setBottomBorderStyle("titoloRoundPanelBorder4");
        fTeXBox = new FTextBox();
        insertContent(fTeXBox, 3, 3);
    }

    public String getText() {
        return fTeXBox.getText();
    }

    public void setText(String text) {
        fTeXBox.setText(text);
    }

    public void setEnabled(boolean enable) {
        fTeXBox.setEnabled(enable);
    }

    public void setStyleName(String styleName) {
        fTeXBox.setStyleName(styleName);
    }

    public void setPixelSize(int w, int h) {
        super.setPixelSize(w, h > 22 ? h : 22);
    }

}
